-- GENERATED SPELL FOR [Felsworn Daggermaw] --


function spell0_21124(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(35570,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21124', 2270, 1)
end

function spell1_21124(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(7367,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21124', 30000, 1)
end

function Sorts_21124(pUnit, Event)
local choix_sorts_21124 = math.random(0, 1)
if choix_sorts_21124 == 0 then
pUnit:RegisterEvent('spell0_21124', 1, 1)
end
if choix_sorts_21124 == 1 then
pUnit:RegisterEvent('spell1_21124', 1, 1)
end
end

function mob21124_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21124', math.random(1500, 3000), 1)
end

function mob21124_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21124_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21124_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21124, 1, 'mob21124_Action')
RegisterUnitEvent(21124, 2, 'mob21124_Leave')
RegisterUnitEvent(21124, 3, 'mob21124_Kill')
RegisterUnitEvent(21124, 4, 'mob21124_Die')
